package com.sanbuTech.foundation.dao.common;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * 
 * @author hyc
 *
 * @param <T>  类
 * @param <K>  主键id类型 
 */
public interface BaseMapperDao<T, K> {

	public T queryById(@Param("id") K id);
	
	public T queryOne(Map<String, Object> params);
	
	public List<T> queryByIds(@Param("ids") List<K> ids);
	
	public List<T> queryList(Map<String, Object> params);
	
	public int insertOne(T data);
	
	public int updateObjById(T data);
	
	public int deleteById(@Param("id") K id);
	
	public int deleteByIds(K[] ids);
	
	public int deleteByParam(Map<String, Object> params);
}
